const dpFoundationPractitionersModel = (request) => {
	return {
		view_dpFoundationPractitioners_page(query = {}) {
			return request('/bussiness/dpFoundationPractitioners/page', {
				method: 'post',
				data: query,
			})
		},
		// 导出
		view_dpFoundationPractitioners_export(query = {}) {
			return request('/bussiness/dpFoundationPractitioners/export', {
				method: 'post',
				data: query,
			})
		},
		// 批量导出
		view_dpFoundationPractitioners_exportAll(query = {}) {
			return request('/bussiness/dpFoundationPractitioners/exportAll', {
				method: 'post',
				data: query,
			})
		},
		// 导入
		view_dpFoundationPractitioners_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpFoundationPractitioners/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入扩展信息
		view_dpFoundationPractitionersExtend_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpFoundationPractitionersExtend/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpFoundationPractitioners_downloadTemplate(query = {}) {
			return request('/bussiness/dpFoundationPractitioners/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 扩展数据导入模板下载
		view_dpFoundationPractitionersExtend_downloadTemplate(query = {}) {
			return request('/bussiness/dpFoundationPractitionersExtend/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 补贴数据导入模板下载
		view_dpPractitionersSubsidy_downloadTemplate(query = {}) {
			return request('/bussiness/dpPractitionersSubsidy/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 采集
		view_dpFoundationPractitioners_gather(query = {}) {
			return request('/bussiness/dpFoundationPractitioners/gather', {
				method: 'post',
				data: query,
			})
		},
		// 养老从业人员基础扩展数据采集包含从业经历,培训记录,享受补贴,奖/罚信息
		view_dpFoundationPractitionersExtend_gatherAll(query = {}) {
			return request('/bussiness/dpFoundationPractitionersExtend/gatherAll', {
				method: 'post',
				data: query,
			})
		},
		// 删除
		view_dpFoundationPractitioners_del(ids) {
			return request('/bussiness/dpFoundationPractitioners/del', {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 详情
		view_dpFoundationPractitioners_view(id) {
			return request(`/bussiness/dpFoundationPractitioners/${id}`, {
				method: 'get',
			})
		},
		// 详情(通过身份证号查询)
		view_dpFoundationPractitioners_staffByIdCard(idCard) {
			return request(`/bussiness/dpFoundationPractitioners/staffByIdCard`, {
				method: 'post',
				data: {
					idCard,
				},
			})
		},
		//养老从业人员基础扩展数据
		view_dpFoundationPractitionersExtend_page(query) {
			return request(`/bussiness/dpFoundationPractitionersExtend/page`, {
				method: 'post',
				data: query,
			})
		},
		//分页查询社会职务
		view_dpFoundationSocialTitle_page(query) {
			return request(`/bussiness/dpFoundationSocialTitle/page`, {
				method: 'post',
				data: query,
			})
		},
		// 全字段搜索
		view_dpFoundationPractitioners_search_page(query) {
			return request(`/bussiness/dpFoundationPractitioners/search/page`, {
				method: 'post',
				data: query,
			})
		},
		// 从业人员全字段搜索
		view_dpFoundationPractitioners_search(query = {}) {
			return request('/bussiness/dpFoundationPractitioners/search/page', {
				method: 'post',
				data: query,
			})
		},
		// 从业人员的数据量
		view_practitioners_pageCount(query = {}) {
			return request('/bussiness/dpFoundationPractitioners/pageCount', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 从业经历
const dpPractitionersExperienceMode = (request) => {
	return {
		view_dpPractitionersExperience_page(query = {}) {
			return request('/bussiness/dpPractitionersExperience/page', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 补贴信息
const dpPractitionersSubsidyMode = (request) => {
	return {
		view_dpSubsidyInfo_page(query = {}) {
			return request('/bussiness/dpSubsidyInfo/page', {
				method: 'post',
				data: query,
			})
		},
	}
}
//奖/处罚信息
const dpRewardPunishmentInfoMod = (request) => {
	return {
		view_dpRewardPunishmentInfo_page(query = {}) {
			return request('/bussiness/dpRewardPunishmentInfo/page', {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...dpFoundationPractitionersModel(request),
	...dpPractitionersExperienceMode(request),
	...dpPractitionersSubsidyMode(request),
	...dpRewardPunishmentInfoMod(request),
})
